package Subject9;

public class TestClassA {
    public static void main(String[] args) {
        int value = 10;
        changeInt(value);
        System.out.println(value);
        ClassA ca = new ClassA();
        ca.value = 10;
        changeObject(ca);
        System.out.println(ca.value);
    }

    public static void changeInt(int value) {
        value++;
    }

    public static void changeObject(ClassA ca) {
        ca.value++;
    }
}
